package com.healthy.suggestions.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.suggestions.mapper.ScoreCriteriaRangeMapper;
import com.healthy.suggestions.domain.ScoreCriteriaRange;
import com.healthy.suggestions.service.IScoreCriteriaRangeService;

/**
 * 评分标准Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class ScoreCriteriaRangeServiceImpl implements IScoreCriteriaRangeService 
{
    @Autowired
    private ScoreCriteriaRangeMapper scoreCriteriaRangeMapper;

    /**
     * 查询评分标准
     * 
     * @param id 评分标准主键
     * @return 评分标准
     */
    @Override
    public ScoreCriteriaRange selectScoreCriteriaRangeById(Long id)
    {
        return scoreCriteriaRangeMapper.selectScoreCriteriaRangeById(id);
    }

    /**
     * 查询评分标准列表
     * 
     * @param scoreCriteriaRange 评分标准
     * @return 评分标准
     */
    @Override
    public List<ScoreCriteriaRange> selectScoreCriteriaRangeList(ScoreCriteriaRange scoreCriteriaRange)
    {
        return scoreCriteriaRangeMapper.selectScoreCriteriaRangeList(scoreCriteriaRange);
    }

    /**
     * 新增评分标准
     * 
     * @param scoreCriteriaRange 评分标准
     * @return 结果
     */
    @Override
    public int insertScoreCriteriaRange(ScoreCriteriaRange scoreCriteriaRange)
    {
        return scoreCriteriaRangeMapper.insertScoreCriteriaRange(scoreCriteriaRange);
    }

    /**
     * 修改评分标准
     * 
     * @param scoreCriteriaRange 评分标准
     * @return 结果
     */
    @Override
    public int updateScoreCriteriaRange(ScoreCriteriaRange scoreCriteriaRange)
    {
        return scoreCriteriaRangeMapper.updateScoreCriteriaRange(scoreCriteriaRange);
    }

    /**
     * 批量删除评分标准
     * 
     * @param ids 需要删除的评分标准主键
     * @return 结果
     */
    @Override
    public int deleteScoreCriteriaRangeByIds(Long[] ids)
    {
        return scoreCriteriaRangeMapper.deleteScoreCriteriaRangeByIds(ids);
    }

    /**
     * 删除评分标准信息
     * 
     * @param id 评分标准主键
     * @return 结果
     */
    @Override
    public int deleteScoreCriteriaRangeById(Long id)
    {
        return scoreCriteriaRangeMapper.deleteScoreCriteriaRangeById(id);
    }
}
